package com.minelx.statementsplus;

import com.minelx.statementsplus.split.MajorSplitter;

import java.util.List;

public interface MajorSql {
	MajorSqlHead head();

	List<MajorSql> split();

	static MajorSql of(MajorSqlHead head, MajorSplitter splitter) {
		return new MajorSql() {
			@Override
			public MajorSqlHead head() {
				return head;
			}

			@Override
			public List<MajorSql> split() {
				return splitter.split();
			}
		};
	}
}
